// JavaScript Document

function changeCurrentEntity(tabPanel, tab){

	if (tab.id != "0") {
		entityId = tab.id;
	}

}

var AppTabPanel =  new Ext.TabPanel({
	region:'center',
	deferredRender:false,
	activeTab:0,
	items:[{
		id:'0',
		contentEl:'center2',
		title: 'SofTAB - CMS ..:::.. Intro',
		autoScroll:true
	}]
});

AppTabPanel.on("tabchange", changeCurrentEntity);
